package com.skp.shaphan.ui.results;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EtchedBorder;

public class ResultsStatusBar extends JPanel {
	private JLabel statusLabel;
	
	public ResultsStatusBar() {
		this.setLayout(new GridBagLayout());
		
		statusLabel = new JLabel();
		statusLabel.setHorizontalAlignment(JLabel.LEFT);
		setBorder(new EtchedBorder(EtchedBorder.RAISED));
		this.add(statusLabel, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 5, 5));
	}
	
	public void setStatusMessage(String message) {
		statusLabel.setText(message);
	}
	
	public String getStatusMessage() {
		return statusLabel.getText();
	}
	
}
